package com.source.lightfowl.basedata.service;

import com.source.lightfowl.VO.PoultryCategoryVO;
import com.source.lightfowl.basedata.entity.PoultryCategory;
import com.source.lightfowl.basedata.entity.Stalls;
import org.springframework.data.domain.Page;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Optional;

/**
 * @Author: 谢春泳
 * @Description:
 * @Date: 2020/1/10 13:01
 */
public interface PoultryCategoryService extends UploadExcelService {
    //3.3查
    List<PoultryCategoryVO> findAll();
    //3.2查 分页
    Page<PoultryCategory> findAllPage(int page, int pageNum);
    //3.1查找根据id查找
    PoultryCategoryVO  findOneById(String id);
    PoultryCategory findById(String id);

    //3.2查找根据id查找
    PoultryCategory findByIdNumber(String id);

    //1.增 或者改
    void save(PoultryCategory sh);

    //2.1删
    void deleteById(String id);
    //2.2批量删
    void deleteBatch(String ids);

    Optional<PoultryCategory> findOptionalById(String poultryCategoryId);

    //上传，增
    void save(List<Object> list, HttpServletRequest request);
    //上传，查
    List<Object> findAllDTO();
}
